﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace AllServer.Core.Entity;
    ///<summary>
    ///预订单表
    ///</summary>
    [SugarTable("TPerOrder")]
    public partial class TPerOrder
    {
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="Id")]
        public int Id {get;set;}
        /// <summary>
        /// 产品编号
        /// </summary>           
        [SugarColumn(ColumnName="ProductId")]
        public int ProductId {get;set;}
        /// <summary>
        /// 渠道编号
        /// </summary>           
        [SugarColumn(ColumnName="ChannelId")]
        public int ChannelId {get;set;}
        /// <summary>
        /// 用户唯一值
        /// </summary>           
        [SugarColumn(ColumnName="UserCode")]
        public string UserCode {get;set;}
        /// <summary>
        /// 价格
        /// </summary>           
        [SugarColumn(ColumnName="Price")]
        public decimal Price {get;set;}
        /// <summary>
        /// 价格类型，对应价格表
        /// </summary>           
        [SugarColumn(ColumnName="PriceType")]
        public int PriceType {get;set;}
        /// <summary>
        /// 外部订单号，由商家生成
        /// </summary>           
        [SugarColumn(ColumnName="OutOrderNo")]
        public string OutOrderNo {get;set;}
        /// <summary>
        /// 业务订单号，由支付宝或微信生成
        /// </summary>           
        [SugarColumn(ColumnName="BizOrderNo")]
        public string BizOrderNo {get;set;}
        /// <summary>
        /// 支付方式，1为支付宝，2为微信
        /// </summary>           
        [SugarColumn(ColumnName="PayMethod")]
        public int PayMethod {get;set;}
        /// <summary>
        /// 收款账号
        /// </summary>           
        [SugarColumn(ColumnName="SellerAccount")]
        public string SellerAccount {get;set;}
        /// <summary>
        /// 创建时间
        /// </summary>           
        [SugarColumn(ColumnName="CreateTime")]
        public DateTime CreateTime {get;set;}
        /// <summary>
        /// 完成时间
        /// </summary>           
        [SugarColumn(ColumnName="FinishTime")]
        public DateTime? FinishTime {get;set;}
        /// <summary>
        /// 预订单的状态
        /// </summary>           
        [SugarColumn(ColumnName="PerOrderStatus")]
        public int PerOrderStatus {get;set;}
        /// <summary>
        /// 应用版本号
        /// </summary>           
        [SugarColumn(ColumnName="AppVer")]
        public int AppVer {get;set;}
        /// <summary>
        /// 系统版本号
        /// </summary>           
        [SugarColumn(ColumnName="AndroidVer")]
        public string AndroidVer {get;set;}
        /// <summary>
        /// 机型
        /// </summary>           
        [SugarColumn(ColumnName="Model")]
        public string Model {get;set;}
        /// <summary>
        /// 安卓id,手机的一个唯一值
        /// </summary>           
        [SugarColumn(ColumnName="AndroidId")]
        public string AndroidId {get;set;}
        /// <summary>
        /// 备注
        /// </summary>           
        [SugarColumn(ColumnName="Remark")]
        public string Remark {get;set;}
        /// <summary>
        /// 是否连续支付类型
        /// </summary>           
        [SugarColumn(ColumnName="IsContinuePay")]
        public int IsContinuePay {get;set;}
        /// <summary>
        /// 连续支付类型内容
        /// </summary>           
        [SugarColumn(ColumnName="ContinuePayBody")]
        public string ContinuePayBody {get;set;}
        /// <summary>
        /// 下次扣款时间
        /// </summary>           
        [SugarColumn(ColumnName="NextPayTime")]
        public DateTime? NextPayTime {get;set;}
        /// <summary>
        /// 本次扣款时间
        /// </summary>           
        [SugarColumn(ColumnName="CurrentPayTime")]
        public DateTime? CurrentPayTime {get;set;}
        /// <summary>
        /// 合同号
        /// </summary>           
        [SugarColumn(ColumnName="AgreementNo")]
        public string AgreementNo {get;set;}
        /// <summary>
        /// 支付宝支付配置编号
        /// </summary>           
        [SugarColumn(ColumnName="PayConfigId")]
        public int PayConfigId {get;set;}
        /// <summary>
        /// 支付宝支付与产品关联配置编号
        /// </summary>           
        [SugarColumn(ColumnName="PayProductId")]
        public int PayProductId {get;set;}
        /// <summary>
        /// 是否补差价订单
        /// </summary>           
        [SugarColumn(ColumnName="IsDiffPrice")]
        public int IsDiffPrice {get;set;}
        /// <summary>
        /// 会员权益,1是超级会员
        /// </summary>           
        [SugarColumn(ColumnName="PrivilegeLevel")]
        public int PrivilegeLevel {get;set;}
        /// <summary>
        /// 扫码支付 0不是 1是
        /// </summary>           
        [SugarColumn(ColumnName="IsQrCode")]
        public int IsQrCode {get;set;}
        /// <summary>
        /// 自动续费结果 0 失败 1成功
        /// </summary>           
        [SugarColumn(ColumnName="ContinueResult")]
        public int ContinueResult {get;set;}
        /// <summary>
        /// 自动扣费失败原因
        /// </summary>           
        [SugarColumn(ColumnName="ContinueRemark")]
        public string ContinueRemark {get;set;}
        /// <summary>
        /// 自动扣费平台 0app 1后台
        /// </summary>           
        [SugarColumn(ColumnName="ContinuePlatform")]
        public int ContinuePlatform {get;set;}
        /// <summary>
        /// 版本来源.当前只有210产品需要上传，0 移动端  1 个人电脑版、2团队电脑版、  3 团队手机版
        /// </summary>           
        [SugarColumn(ColumnName="VersionType")]
        public int VersionType {get;set;}
        /// <summary>
        /// 迁移主键
        /// </summary>           
        [SugarColumn(ColumnName="RawId")]
        public int? RawId {get;set;}
        /// <summary>
        /// 最后更新时间，用于同于更新判断
        /// </summary>           
        [SugarColumn(ColumnName="SyncUpdateTime")]
        public DateTime? SyncUpdateTime {get;set;}
    }
